using System;
using System.Collections;
using System.Collections.Generic;

using BVMB.DataLayer.Base;

namespace BVMB.DataLayer.BusinessObjects
{
    public partial class Ve : BusinessBase<int>
    {
        #region Declarations

		
		private ChuyenBay _chuyenBay = null;
		private HangVe _hangVe = null;
		private HanhKhach _hanhKhach = null;
		
		private IList<PhieuDatVe> _phieuDatVes = new List<PhieuDatVe>();
		
		#endregion

        #region Constructors

        public Ve() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual ChuyenBay ChuyenBay
        {
            get { return _chuyenBay; }
			set
			{
				OnChuyenBayChanging();
				_chuyenBay = value;
				OnChuyenBayChanged();
			}
        }
		partial void OnChuyenBayChanging();
		partial void OnChuyenBayChanged();
		
		public virtual HangVe HangVe
        {
            get { return _hangVe; }
			set
			{
				OnHangVeChanging();
				_hangVe = value;
				OnHangVeChanged();
			}
        }
		partial void OnHangVeChanging();
		partial void OnHangVeChanged();
		
		public virtual HanhKhach HanhKhach
        {
            get { return _hanhKhach; }
			set
			{
				OnHanhKhachChanging();
				_hanhKhach = value;
				OnHanhKhachChanged();
			}
        }
		partial void OnHanhKhachChanging();
		partial void OnHanhKhachChanged();
		
		public virtual IList<PhieuDatVe> PhieuDatVes
        {
            get { return _phieuDatVes; }
            set
			{
				OnPhieuDatVesChanging();
				_phieuDatVes = value;
				OnPhieuDatVesChanged();
			}
        }
		partial void OnPhieuDatVesChanging();
		partial void OnPhieuDatVesChanged();
		
        #endregion
    }
}
